package com.tulele.vtool.mapper;

import com.tulele.vtool.model.ArticleBrandAndTypeInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component(value = "articleBrandAndTypeInfoMapper")
public interface ArticleBrandAndTypeInfoMapper {

    /**
     * 查询品牌关联的文章类型ID信息
     * @param articleBrandId
     * @return
     */
    String queryBrandRelatedArticleTypeIds(@Param("articleBrandId") Integer articleBrandId);

    /**
     * 添加文章品牌和类型信息
     * @param articleBrandAndTypeInfo
     * @return
     */
    int addArticleBrandAndTypeInfo(ArticleBrandAndTypeInfo articleBrandAndTypeInfo);

    /**
     * 更新文章品牌和类型信息
     * @param articleBrandAndTypeInfo
     * @return
     */
    int updArticleBrandAndTypeInfo(ArticleBrandAndTypeInfo articleBrandAndTypeInfo);
}